/**
 * 发送消息
 * The interface definition for a PureMVC <code>Notifier</code>.
 *
 * <code>MacroCommand</code>, <code>SimpleCommand</code>, <code>Mediator</code> and
 * <code>Proxy</code> all have a need to send <code>Notifications</code>.
 * 
 * The <code>INotifier</code> interface provides a common method called
 * <code>sendNotification</code> that relieves implementation code of the necessity to actually
 * construct <code>Notification</code>s.
 *
 * The <code>INotifier</code> interface, which all of the above mentioned classes extend,
 * provides an initialized reference to the <code>Facade</code> singleton, which is required by
 * the convenience method <code>sendNotification</code>	for sending <code>Notifications</code>,
 * but it also eases implementation as these classes have frequent <code>Facade</code>
 * interactions and usually require access to the facade anyway.
 */
export interface INotifier {
	/**
	 * Create and send a <code>Notification</code>.
	 *
	 * Keeps us from having to construct new <code>Notification</code> instances in our
	 * implementation code.
	 * 
	 * @param name
	 * 		The name of the notification to send.
	 * 
	 * @param body
	 * 		The body of the notification (optional).
	 *
	 * @param type
	 * 		The type of the notification (optional).
	 */
    sendNotification(name: string, body?: any, type?: string): void;
}